Solving higher-order differential equations using the characteristic equation